* {
    font-family: "Microsoft YaHei"
}
li.nav-item {
    width: 33%;
    text-align: center;
    float: left;
}
li.nav-item>a {
    text-decoration: none;
    color: #999;
    padding: 2px 0px;
}
li.nav-item>a>span {
    display: inline-block;
    width: 60px;
    height: 50px;
    padding-top: 32px;
    color: #999;
    text-align: center;
}
li.nav-item>a>span.icon-message {
    position: relative;
    background: url(../img/icons.png) no-repeat 0 0;
    background-position: -367px -381px;
    background-size: 703px auto;
}
li.nav-item>a>span.icon-message.active {
    background-position: -366px -448px;
}
li.nav-item>a>span.icon-people {
    background: url(../img/icons.png) no-repeat 0 0;
    background-position: -471px -382px;
    background-size: 703px auto;
}
li.nav-item>a>span.icon-people.active {
    background-position: -468px -440px;
}
li.nav-item>a>span.icon-me {
    background: url(../img/icons.png) no-repeat 0 0;
    background-position: -252px -381px;
    background-size: 703px auto;
}
li.nav-item>a>span.icon-me.active {
    background-position: -252px -444px;
}
.nav>li>a:hover,.nav>li>a:focus {
    text-decoration: none;
    background-color: transparent;
}

#banner {
    background-color: rgb(0,162,224);
    color: #ffffff;
    font-size: 24px;
    text-align: center;
    padding: 10px;
    font-weight: 100;
    position: relative;
}
#anonymous-banner {
    background-color: rgb(183,0,0);
    color: #ffffff;
    font-size: 24px;
    text-align: center;
    padding: 2px;
}
#back-arrow {
    width: 30px;
    height: 37px;
    position: absolute;
    top: 7px;
    left: 12px;
    cursor: pointer;
    background: url('../img/button_chat1ffa40.png') no-repeat -67px -285px;

}
#add-people {
    width: 38px;
    height: 38px;
    position: absolute;
    top: 7px;
    right: 12px;
    cursor: pointer;
    background: url('../img/button_chat1ffa40.png') no-repeat -169px -850px;
    background-size: 324px auto;
}
#people-group {
    width: 30px;
    height: 30px;
    position: absolute;
    top: 15px;
    right: 8px;
    cursor: pointer;
    background: url('../img/contacts.png') no-repeat 0 0;
    background-size: 25px auto;
}
#chatting-widget {
    padding: 0px 15px 10px 15px;
    margin-bottom: 60px;
    margin-top: -5px;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
}
.chat-item{
    border: 1px solid rgb(0,162,224);
    /*border-radius: 3px;*/
    cursor: pointer;
    display: block;
    padding: 5px 10px 5px 32px;
    overflow: hidden;
    margin: 10px auto;
    max-width: 310px;
}
.chat-item:hover{
    background: #eef3f4;
}
.chat-item-icon{
    position: relative;
    display: block;
    width: 36px;
    height: 36px;
    float:left;
    border: 1px solid #FFF;
    margin-top: 4px;
}
.chat-item-icon>img{
    width: 100%;
    height: 100%
}
.chat-item-name{
    /*display: block;*/
    /*float: left;*/
    width: 220px;
    font-size: 14px;
    color: #343434;
    margin-left: 10px;
    text-shadow: 0 1px 0 #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    /*margin-top: 5px;*/
    padding-top: 4px;
}
.chat-item-content {
    width: 220px;
    font-size: 14px;
    color: #979797;
    margin-left: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.red-point{
    position: absolute;
    left: 23px;
    top: -7px;
    width: 19px;
    height: 19px;
    z-index: 999;
    background: url('../img/button_chat1ffa40.png') no-repeat -156px -1008px;
}
.icon-message>.red-point {
    position: absolute;
    left: 37px;
    top: -6px;
    background: url('../img/button_chat1ffa40.png') no-repeat -156px -1008px;
}
.grey-cross{
    position: absolute;
    left: 23px;
    top: 23px;
    width: 19px;
    height: 19px;
    z-index: 999;
    background: url('../img/button_chat1ffa40.png') no-repeat -7px -433px;
}
.message {
    width: 100%;
    margin-top: 10px;
    table-layout:fixed
}
.message-container {
    position: relative;
    max-width: 90%;
    background: #FBFBFB;
    border-width: 1px;
    border-style: solid;
    border-color: #EEE;
    margin: 0 8px;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    -webkit-border-top-left-radius: 4px;
    -webkit-border-top-right-radius: 4px;
    -webkit-border-bottom-left-radius: 4px;
    -webkit-border-bottom-right-radius: 4px;
    padding: 3px 10px;
}
.my.message-container {
    float: right;
}
.your.message-container {
    float: left;
}
.message-container>pre {
    /*word-wrap: break-word;*/
    /*word-break: break-all;*/
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    text-shadow: none;
    background-color: transparent;
    white-space: normal;
}
.message-id {
    font-weight: bold;
    font-size: 16px;
}
.triangle{
    top: auto;
    bottom: 5px;
    margin-top: 0px;
    position: absolute;
    height: 0;
    width: 0;
}
.right.triangle{
    left: 100%;
    border: 6px solid #EEE;
    /*依次消除右边/上边/下边的三个三角形 留下左边的三个三角形*/
    border-right-color: transparent;
    border-top-color: transparent;
    border-bottom-color: transparent;
}
.left.triangle{
    right: 100%;
    border: 6px solid #EEE;
    border-left-color: transparent;
    border-top-color: transparent;
    border-bottom-color: transparent;
}
.right.triangle-inner{
    border: 5px solid #FBFBFB !important;
    border-right-color: transparent !important;
    border-top-color: transparent !important;
    border-bottom-color: transparent !important;
    bottom: 6px;
}
.left.triangle-inner{
    border: 5px solid #FBFBFB !important;
    border-left-color: transparent !important;
    border-top-color: transparent !important;
    border-bottom-color: transparent !important;
    bottom: 6px;
}
.message-icon {
    vertical-align: bottom;
    padding: 0px;
    width: 40px;
}
.message-icon>img {
    width: 100%;
    height: auto;
    vertical-align: middle;
    border:1px solid transparent;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}
.sm-label {
    padding-top: .5em;
    padding-right: 0;
    font-size: 14px;
    color: #797979;
}
.form-group-sex {
    height: 40px;
    margin-bottom: 0;
}

.form-group-sex label {
    height: 40px;
    padding-top: 13px !important;
}

.label-phone {
    padding-left: 24px;
    background: url(../img/label_phone.png) no-repeat 7px 9px;
    background-size: 14px auto;
}

.label-psw {
    padding-left: 24px;
    background: url(../img/label_psw.png) no-repeat 3px 7px;
    background-size: 23px auto;
}

.label-name {
    padding-left: 24px;
    background: url(../img/label_name.png) no-repeat 2px 7px;
    background-size: 26px auto;
}

.label-sex {
    padding-left: 24px;
    background: url(../img/label_sex.png) no-repeat 3px 10px;
    background-size: 23px auto;
}
.warning {
    margin-top: 5px;
    color: #a94442;
    font-size: 12px;
}

.error {
    margin-top: 5px;
    color: #a94442;
    font-size: 12px;
}
.form-horizontal .has-feedback .form-control-feedback {
    right: 25px
}
.has-error .form-control-feedback {
    color: #a94442
}
.has-feedback {
    position: relative
}

.has-feedback .form-control {
    padding-right: 42.5px;
}

.form-control-feedback {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    display: block;
    width: 34px;
    height: 34px;
    line-height: 34px;
    text-align: center;
    pointer-events: none
}

.btn-blue {
    border-radius: 0px;
    background-color: rgb(0,162,224);
    color:#ffffff;
}
.btn-blue:hover {
    background-color: #cccccc;
}
#contact-widget {
    max-width: 320px;
    margin: 0px auto 60px;
}
#chat-Widget {
    margin: 0px auto 60px;
}
#config-Widget {
    max-width: 320px;
    margin: 0px auto 60px;
}
#config-portrait-widget {
    max-width: 310px;
    margin:0 auto;
    padding: 0 10px;
}
.config-protrait {
    padding: 35px 10px;
    overflow: hidden;
    position: relative;
    text-align: left;
    cursor: pointer;
    font-size: 18px;
    border-bottom: 1px solid #DDDDDD;
}
.config-protrait .forward-arrow{
    width: 30px;
    height: 37px;
    position: absolute;
    top: 27px;
    right: 5px;
    background: url('../img/button_chat1ffa40.png') no-repeat -95px -285px;
}
.portrait {
    position: absolute;
    right: 40px;
    top: 18px;
    height: 60px;
    width: auto;
    border: 1px solid #E8E8E8;
    border-radius: 5px;
}
.file-input-span {
    position: relative;
    overflow: hidden;
}
.file-input-span input[type=file] {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    opacity: 0;
    filter: alpha(opacity=0);
    transform: translate(-300px, 0) scale(4);
    font-size: 18px;
    direction: ltr;
    cursor: pointer;
}
.config-item+.config-item {
    border-top: 1px solid #DDDDDD;
}
.config-item {
    padding: 15px;
    overflow: hidden;
    position: relative;
    text-align: left;
    cursor: pointer;
    font-size: 18px;
}
.config-item .item-content {
    float: right;
    min-width: 150px;
    text-align: right;
}
.config-item .item-input {
    float: right
}
.config-item .forward-arrow {
    width: 30px;
    height: 37px;
    position: absolute;
    top: 7px;
    right: 5px;
    background: url('../img/button_chat1ffa40.png') no-repeat -95px -285px;
}
.contact {
    padding: 10px 10px 10px 38px;
    overflow: hidden;
    position: relative;
}
.contact+.contact{
    border-top: 1px solid #DDDDDD;
}
.contact:hover {
    cursor: pointer;
}
.contact>.contact-icon {
    display: inline-block;
    position: relative;
}
.contact>.contact-icon>img {
    width: 36px;
}
.contact>span {
    margin-left: 20px;
    display: inline-block;
    width: 189px;
    overflow: hidden;
    vertical-align: middle;
    text-overflow: ellipsis;
    text-align: left;
    white-space: nowrap;
}
.invite-checkbox {
    position: absolute;
    right: 0px;
    top: 8px;
}

#message-input-container{
    position: fixed;
    bottom: 0px;
    width: 100%;
    padding: 6px 10px 10px;
    background-color: #ffffff;
}
#message-input{
    height: 34px;
    width: 100%;
    padding: 6px 12px;
    font-size: 14px;
    color: #555;
    border: 1px solid #ccc;
    border-radius: 0px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    resize:none;
    overflow-x:visible;overflow-y:visible;
}
.offline-tip {
    font-size: 11px;
    color: #F70000;
    margin-top: 15px;
}
.chat-pic-input {
    display: block;
    height: 34px;
    width: 34px;
    margin: 0 auto;
    background: url(../img/icons.png) no-repeat -135px -219px;
    background-size: 269px auto;
}
h1,h2,h3,h4,h5,h6 {
    font-family: inherit;
}
canvas {
    background-color: #f3f3f3;
    -webkit-box-shadow: 3px 3px 3px 0 #e3e3e3;
    -moz-box-shadow: 3px 3px 3px 0 #e3e3e3;
    box-shadow: 3px 3px 3px 0 #e3e3e3;
    border: 1px solid #c3c3c3;
    border-radius:10px;
    height: 150px;
    margin: 6px 0 0 6px;
}
